FROM 121.37.225.249:80/platform/base_image:v1.0

ENV SERVER_PORT 9993

EXPOSE $SERVER_PORT

#设置变量 JAVA_OPTS（填入内存）
ENV JAVA_OPTS -Xms512m -Xmx1024m -Duser.timezone=GMT+08
#工作路径
ENV WORK_PATH /home/aiplatform


ENV JAR_FILE xw-aiflow-service-2.0.0.jar

COPY ./target/$JAR_FILE ${WORK_PATH}/$JAR_FILE
COPY ./target/classes/application.properties ${WORK_PATH}
COPY ./target/classes/log4j2-spring.xml ${WORK_PATH}
ENTRYPOINT java $JAVA_OPTS -jar $WORK_PATH/$JAR_FILE